import { createApp } from "vue";
import { createRouter, createWebHistory } from "vue-router";
import App from "./App.vue";
import router from "./router";
import directives from "./directive/index";
import "vue-fullpage.js/dist/style.css";
// import './fullpage.scrollHorizontally.min' // Optional. When using fullpage extensions
import VueFullPage from "vue-fullpage.js";
import "swiper/css";
import "swiper/css/scrollbar";
import "./styles/main.css";

const app = createApp(App);
// 批量注册自定义指令

Object.keys(directives).forEach((name) => {
  app.directive(name, directives[name]);
});

app.use(router).use(VueFullPage);
app.mount("#app");
